{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
	<li class="active"><a href="#tab_basic">复制数据</a></li>
</ul>
<div class="app-content">
	<div class="app-form">
		<form action="" method="post" class="form-horizontal form form-validate" id="setting-form">
			<div class="panel panel-default">
				<div class="panel-heading">复制数据</div>
				<div class="panel-body">
					<div class="tab-content">
						<div class="alert alert-info">
							<b>注意：</b>
							<p>1.基础设置项包括首页栏中的插件管理，脚部栏以及各个插件的基础设置。</p>
							<p>2.该代理已有的基础设置项如果与模板代理设置项冲突，将会被<span style="color: red;">覆盖</span>。</p>
							<p>3.商户分类，拼团商品分类和掌上信息分类，广告，幻灯片，公告等<span style="color: red;">请注意选择同步方式</span>。</p>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">模板代理</label>
							<div class="col-sm-9">
								<select name ='expressid' class="form-control select2">
									<option value="0">总后台</option>
									{loop $agents $ee}
									<option value="{$ee['id']}">{$ee['agentname']}</option>
									{/loop}
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">目标代理</label>
							<div class="col-sm-9">
								<select name ='passiveid[]' class="form-control select2" multiple="multiple">
									<option value="0">总后台</option>
									{loop $agents $pp}
									<option value="{$pp['id']}">{$pp['agentname']}</option>
									{/loop}
								</select>
								<span class="help-block" style="color: red;">不选择目标代理将会同步到其他所有代理，代理过多时可能导致服务器超时，请谨慎使用。</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">同步方式</label>
							<div class="col-sm-9">
								<label class="radio-inline">
									<input type="radio" value="0" name="copystatus" checked="checked" > 添加
								</label>
								<label class="radio-inline">
									<input type="radio" value="1" name="copystatus"> 覆盖
								</label>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">同步内容</label>
							<div class="col-sm-9">
								<label class="checkbox-inline">
									<input type="checkbox" value="base"  name="synchr[]" /> 基础设置
								</label>
								<label class="checkbox-inline">
									<input type="checkbox" value="merce"  name="synchr[]" /> 商户分类
								</label>
								<label class="checkbox-inline">
									<input type="checkbox" value="fight"  name="synchr[]" /> 拼团商品分类
								</label>
								{if p('rush')}
								<label class="checkbox-inline">
									<input type="checkbox" value="rush_class"  name="synchr[]" /> 抢购商品分类
								</label>
								{/if}
								{if p('groupon')}
								<label class="checkbox-inline">
									<input type="checkbox" value="group_class"  name="synchr[]" /> 团购商品分类
								</label>
								{/if}
								{if p('bargain')}
								<label class="checkbox-inline">
									<input type="checkbox" value="bargain_class"  name="synchr[]" /> 砍价商品分类
								</label>
								{/if}
								{if p('pocket')}
								<label class="checkbox-inline">
									<input type="checkbox" value="pocket"  name="synchr[]" /> 同城帖子分类
								</label>
								{/if}
								{if p('citycard')}
								<label class="checkbox-inline">
									<input type="checkbox" value="citycard"  name="synchr[]" /> 同城名片数据
								</label>
								{/if}
								{if uniacid_p('yellowpage')}
								<label class="checkbox-inline">
									<input type="checkbox" value="yellowpage"  name="synchr[]" /> 黄页114分类
								</label>
								{/if}
								<label class="checkbox-inline">
									<input type="checkbox" value="notice"  name="synchr[]" /> 公告
								</label>
								<label class="checkbox-inline">
									<input type="checkbox" value="adv"  name="synchr[]" /> 幻灯片
								</label>
								<label class="checkbox-inline">
									<input type="checkbox" value="nav"  name="synchr[]" /> 导航栏
								</label>
								<label class="checkbox-inline">
									<input type="checkbox" value="banner"  name="synchr[]" /> 广告栏
								</label>
								<label class="checkbox-inline">
									<input type="checkbox" value="cube"  name="synchr[]" /> 商品魔方
								</label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="selectCard"  name="synchr[]" /> 选项卡
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="flootMenu"  name="synchr[]" /> 底部菜单
                                </label>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-9">
					<input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		</form>
	</div>
</div>
{php include wl_template('common/footer');}